<?php
App::uses('AppModel', 'Model');
/**
 * Rating Model
 *
 * @property RatingArticle $RatingArticle
 * @property RatingValue $RatingValue
 */
class Rating extends AppModel {
/**
 * Display field
 *
 * @var string
 */
// 	public $useDbConfig = 'ratings';
	public $displayField = 'name';

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
		'RatingArticle' => array(
			'className' => 'RatingArticle',
			'foreignKey' => 'rating_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'RatingValue' => array(
			'className' => 'RatingValue',
			'foreignKey' => 'rating_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

	public $belongsTo = array(
				'RatingGroup' => array(
					'className' => 'RatingGroup',
					'foreignKey' => 'rating_group_id',
					'conditions' => '',
					'fields' => '',
					'order' => ''
	)
	);
	
}
